#include "ibas_in.h"

#ifdef _COMPOPT_WITHORA
#include "businessdb.h"
#include "dbutil.h"
#endif

int OpenDatabaseSessions()
{
	int		nret = 0 ;
#ifdef _COMPOPT_WITHORA
	nret = BusinessDataBaseOpen() ;
#endif
	return nret;
}

int CloseDatabaseSessions()
{
#ifdef _COMPOPT_WITHORA
	BusinessDataBaseClose();
#endif
	return 0;
}

int BeginDatabaseTransaction()
{
#ifdef _COMPOPT_WITHORA
	dbBeginWork();
#endif
	return 0;
}

int CommitDatabaseTransaction()
{
#ifdef _COMPOPT_WITHORA
	dbCommit();
#endif
	return 0;
}

int RollbackDatabaseTransaction()
{
#ifdef _COMPOPT_WITHORA
	dbRollback();
#endif
	return 0;
}

